/*
 *  Copyright (c)  2016-NOW  Jacars Co.Ltd.
 *  All rights reserved.
 */
package com.jacars.biz.user.util;


import com.jacars.common.utils.RandomType;
import com.jacars.common.tenant.TenantId;
import com.jacars.common.utils.StringUtil;
import org.springframework.stereotype.Component;

/**
 * Jspt租户id生成器
 *
 * @author JSPT
 */
@Component
public class JsptTenantId implements TenantId {
	@Override
	public String generate() {
		return StringUtil.random(6, RandomType.INT);
	}
}
